package com.hxrfid.project.domain.bo;

import com.hxrfid.common.core.domain.BaseEntity;
import com.hxrfid.common.core.validate.AddGroup;
import com.hxrfid.common.core.validate.EditGroup;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 实体卡列业务对象 bs_card_list
 *
 * @author hxrfid
 * @date 2025-07-04
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
public class BsCardListBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 卡片类型id
     */
    @NotNull(message = "卡片类型id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long cardId;

    /**
     * 卡片价格
     */
    private BigDecimal cardPrice;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 是否激活
     */
    private String active;

    /**
     * 备注
     */
    private String remark;

    /**
     * 租户编码
     */
    private Long tenantId;

    /**
     * 制卡数量
     */
    private Integer cardNum;
}
